<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var names=["张三", "李斯", "王武", "赵六", "孙琪", "王八", "周酒", "冯氏", "蒋慎斌", "汤舒青",
				"王海波", "郑定国", "庞皓元", "刘涛", "周总一", "万旭光", "皇位", "刘璐璐", "翟坤", "潘斌", "王志伟",
				"堂还强", "太极拳", "梁总", "金蕊", "侯义"
			];
			var str=null;
			var x;
			function ren(){
				let pp=document.querySelector("#p1")
				 x=Math.floor( Math.random() * names.length);
				pp.innerHTML=names[x];
				
				
				
			}
			function start(){
				
				clearInterval(str);
				str= setInterval("ren()", 100);
			}
			function end(){
				clearInterval(str);
				names.splice(x,1);
			}
		</script>
	</head>
	<body>
		<p id="p1" >中奖人</p>
		<input id="start" type="button" value="开始" onclick="start()" >
		
		
		<input id="end" type="button" value="停止" onclick="end()">
	</body>
</html>